package day1126;

class Tank{
    int x,y;//坦克的x y坐标
    void moveRight(){
        x=x+2;
    }
    void  moveUp(){
        y=y-2;
    }
}



public class Demo13 {
    public static void main(String[] args) {
        Tank t=new Tank();
        t.moveRight();
    }
}
